#ifndef _SKIN_TABLE_H_
#define _SKIN_TABLE_H_

#include "SkinElement.h"

class CSkinTable : public CSkinElementComposite {
public:
	CSkinTable();
	virtual ~CSkinTable();

	void AdjustChildPosition();
	virtual void ReloadImage();

	virtual void Render(CNateRenderer * pRenderer);
	virtual BOOL Load(TiXmlNode * pNode);
	
	void SetStretchMode( int nStretchMode ) { m_iStrectMode = nStretchMode;}
protected:

	POINT m_ptLT_image_src;
	SIZE m_size_image_src;
	BOOL m_bImageFillTiled;	
	int m_iStrectMode;


	int m_nGradient;
	COLORREF m_crGradientColor1;
	COLORREF m_crGradientColor2;

	BOOL LoadImagePosition( CString strMsg );

	virtual BOOL IsValidChildTagName(CString strName) { return strName == _T("tr"); }	
};

#endif